package com.bdqn.crm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.crm.mapper.SalPlanMapper;
import com.bdqn.crm.pojo.SalPlan;
import com.bdqn.crm.service.SalPlanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class SalPlanServiceImpl extends ServiceImpl<SalPlanMapper, SalPlan>
        implements SalPlanService {

    @Resource
    private SalPlanMapper salPlanMapper;

    /**
     * 分页查询
     *
     * @param custName  客户名称
     * @param dueTo     负责人
     * @param title     概要
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @Override
    public List<SalPlan> selectPages(String custName, String dueTo, String title, Integer pageIndex, Integer pageSize) {
        return salPlanMapper.selectPages(custName, dueTo, title, pageIndex, pageSize);
    }

    /**
     * 数据库记录总量
     *
     * @param custName
     * @param dueTo
     * @param title
     * @return
     */
    @Override
    public int count(String custName, String dueTo, String title) {
        return salPlanMapper.count(custName, dueTo, title);
    }
}




